package com.lln.cjcx.pojo.grade;

import java.util.List;

/**
 * @author LiLinnan
 * @version 1.0
 * @date 2020/1/23 20:25
 */

public final class Grade extends yfdc.JavaBean implements java.io.Serializable {
	private transient static final long serialVersionUID = 0L;
	/**
	 * 课程号
	 */
	private String courseNumber;
	/**
	 * 课程名称
	 */
	private String courseName;
	/**
	 * 课程分数
	 */
	private String score;

	/**
	 * 未通过原因
	 */
	private String failReason;

	/**
	 * 详细分数
	 */
	private List<GradeDetail> details;

	public Grade() {
		failReason = "无";
	}

	public String getCourseNumber() {
		return courseNumber;
	}

	public void setCourseNumber(String courseNumber) {
		this.courseNumber = courseNumber;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	public List<GradeDetail> getDetails() {
		return details;
	}

	public void setDetails(List<GradeDetail> details) {
		this.details = details;
	}

	@Override
	public String toString() {
		try {
			return yfdc.JavaBean.toString(this);
		} catch (Throwable ex) {
			ex.printStackTrace(System.out);
			return "Grade{" +
					"courseNumber='" + courseNumber + '\'' +
					", courseName='" + courseName + '\'' +
					", score='" + score + '\'' +
					", failReason='" + failReason + '\'' +
					", details=" + details +
					'}';
		}
	}

	public String getFailReason() {
		return failReason;
	}

	public void setFailReason(String failReason) {
		this.failReason = failReason;
	}
}
